$borderColor: rgba(232, 232, 232, 1);
$fontColor: rgba(96, 98, 102, 1);
$bgColor:rgba(228, 228, 228, 1);
$acFontColor:rgba(24, 144, 255, 1);
$deFontColor:#F56C6C;

.el-input {
  .el-input__inner {
    text-align: center !important;
  }
}

.sku {
  font-size: 12px;
  user-select: none;

  .error-tips {
    color: rgba(230, 162, 60, .7);
  }

  .sku-list-wrap {
    border: 1px solid $borderColor;
    border-radius: 2px;
    padding: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
    min-width: 1000px;

    .sku-lists {
      border: 1px solid $borderColor;
    }

    .sku-name {
      background: $bgColor;
    }

    .sku-name,
    .sku-value {
      padding: 5px;
      box-sizing: border-box;

      .sku-label {
        font-size: 12px;
        color: $fontColor;
      }

      .sku-input {
        display: inline-block;
        width: 100px;

        input {
          text-align: center;
        }
      }

      .sku-checkbox {
        margin-left: 15px;
      }

      .sku-add-value-ele {
        color: $acFontColor;
        display: inline-block;
        margin-left: 5px;
        cursor: pointer;
        user-select: none;
      }

      .add-disabled {
        cursor: not-allowed;
        color: rgba(187, 187, 187, 0.71);
      }

      .sku-delete {
        color: $deFontColor;
        display: inline-block;
        margin-left: 5px;
        cursor: pointer;
        position: absolute;
        right: 20px;
      }

      .el-input-group__append {
        position: absolute;
        right: 0;
        top: 0;
        height: 20px;
        width: 20px;
        padding: 0;
      }
    }

    .sku-value {
      // display: flex;
      // justify-content: flex-start;
      // flex-wrap: wrap;
      overflow: hidden;
    }

    .sku-value-wrap {
      display: flex;
      justify-content: flex-start;
      overflow: hidden;
      flex-wrap: wrap;
    }

    .sku-value-list {
      margin-right: 5px;
      margin-bottom: 5px;
      position: relative;

      &:hover {
        .delete-icon {
          display: block;
        }

      }

      .delete-icon {
        transition: all .2s ease-in-out;
        position: absolute;
        right: 1px;
        top: 1px;
        display: none;
        height: 15px;
        width: 15px;
        cursor: pointer;
        border-radius: 0 0 0 10px;
        background: $deFontColor;
        color: white;

        i {
          position: absolute;
          left: 2px;
        }
      }
    }
  }

  .sku-detail {
    border: 1px dashed $borderColor;
    padding: 5px;
    margin-top: 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-start;

    .sku-label {
      width: 70px;
      color: $fontColor;
    }
  }

  .sku-detail-table {
    border: 1px solid $borderColor;
    padding: 5px;
    box-sizing: border-box;
    flex: 1;


    .sku-row {
      display: flex;
      justify-content: flex-start;

      .sku-cell {
        width: 86px;
        text-align: center;
        line-height: 20px;

        .el-input {
          width: 80px;
        }

        &:nth-last-child(1) {
          width: 150px;
        }
      }
    }

    .table-h {
      border-bottom: 1px solid $borderColor;
      color: rgb(96, 98, 102);

      .sku-cell {
        line-height: 32px;
        font-size: 14px;
        font-weight: 400;
      }
    }

    .table-body {
      .sku-row {
        margin-top: 10px;
      }
    }

    .table-footer {
      margin-top: 10px;
      border-top: 1px solid $borderColor;

      span {
        margin-right: 10px;
      }

      .pitch-ele {
        cursor: pointer;
        color: $acFontColor;

        &:hover {
          color: rgba(24, 144, 255, .7);
        }
      }

      .disabled {
        cursor: not-allowed;
        color: rgba(187, 187, 187, 0.71);

        &:hover {
          color: rgba(187, 187, 187, 0.71);
        }
      }
    }

  }
}